
/*
 * Hlpay-Plus aggregate payment system. Copyright
 * (c) 2022-2023 Hlpay Team Copyright has the right of final interpretation.
 */

package com.hlkj.pay.infrastructure.mapper.admin;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hlkj.framework.mybatis.core.mapper.BaseMapperX;
import com.hlkj.pay.infrastructure.model.admin.RoleDO;

/**
 * @author HlpayTeam
 * @date 2024/09/03 14:10
 */
@Mapper
public interface RoleMapper extends BaseMapperX<RoleDO> {

    /**
     * 最新
     * 
     * @return
     */
    RoleDO selectLatestOne();

    /**
     * selectUserPage
     * 
     * @param page
     * @return
     */
    IPage<RoleDO> selectRolePage(IPage<RoleDO> page, @Param("sn") String sn, @Param("snList") List<String> snList, @Param("ew") LambdaQueryWrapper<RoleDO> queryWrapper);

    /**
     * selectUserPage
     * 
     * @return
     */
    List<RoleDO> selectRoleList(@Param("sn") String sn, @Param("snList") List<String> snList,@Param("ew") LambdaQueryWrapper<RoleDO> queryWrapper);
}
